<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>phpcms V9</title>
<link href="{CSS_PATH}reset.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}default_blue.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}dialog_simp.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<style type="text/css">
.header,.main,.nav {
    width: 940px;
    margin: 0 auto;
    overflow: auto;
}
.nav {
    width: 920px;
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #fff;
}
.nav a {
    display: inline-block;
    padding: 2px 4px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}
.nav a:hover {
    color: #390;
}
</style>
</head>
<body class="rss-channel">
{template "content","block-header3"}
<div class="main">
    <div class="col-left navlist">
        <div class="box memu">
            <h6 class="title-2 f14 text-c">频道列表</h6>
            <div class="content blue">
            {pc:content action="category" catid="0" siteid="$this->siteid" order="listorder ASC"}
            {loop $data $r}
                <div class="color on">{$r[catname]}</div>
                <ul style="display:block">
                    {loop subcat($r[catid],0,0,$this->siteid) $v}
                    <li><a href="?m=content&c=rss&catid={$v[catid]}&siteid={SITEID}">{$v[catname]}</a> <a href="{APP_PATH}index.php?m=content&c=rss&rssid={$v[catid]}"><img src="{IMG_PATH}icon/rss.gif"></a></li>
                    {/loop}
                </ul>
            {/loop}    
            {/pc}    

            </div>
        </div>
    </div>
    <div class="col-right rsslist">
    {loop $subcats $n $r}
        {php $i++}
        <div class="box" {if $i%2!=0}style="margin-right:10px"{/if}>
            <h5 class="title-1" ><span class="xml"><a rel="{APP_PATH}{urlencode('index.php?m=content&c=rss&rssid=')}{$r[catid]}" href="{APP_PATH}index.php?m=content&c=rss&rssid={$r[catid]}" class="xmlbut" target="_blank"">xml</a>
            <div class="rss cu" onclick="RssTab('rss_{$n}')" id="rss_{$n}"><dl><dt>订阅到</dt></dl></div>
            </span>{$r[catname]}</h5>
            <ul class="content list f14 lh24">
            {pc:content action="lists" catid="$r[catid]" num="5" order="id DESC" return="info"}
                {loop $info $v}
                    <li>·<a href="{if strpos($v[url],'http')===false}{$siteurl}{/if}{$v[url]}">{str_cut($v[title],'40')}</a></li>
                {/loop}
            {/pc}    
            </ul>
        </div>
        {if $i%2==0}<div class="bk10"></div>{/if}
    {/loop}                    
    </div>
    <div class="bk20"></div>
</div>
<script type="text/javascript">

$(function() {
var memu = $('.navlist .memu .content div');
memu.toggle(
  function () {
    $(this).addClass('on');
    $(this).next().show();
  },
  function () {
    $(this).removeClass('on');
    $(this).next().hide();
  }
);    
});
var ppwin='<dl><dt>订阅到</dt><dd><a href="http://reader.youdao.com/b.do?keyfrom=163&url={feedurl}" title="有道" target="_blank"><img src="http://img1.cache.netease.com/cnews/css09/rss100121/icon_subshot02_youdao.gif" width="50" height="14" alt="有道" /></a></dd><dd><a href="http://fusion.google.com/add?feedurl={feedurl}" title="google" target="_blank"><img src="http://img1.cache.netease.com/cnews/css09/rss100121/icon_subshot02_google.gif" width="50" height="14" alt="google" /></a></dd><dd><a href="http://add.my.yahoo.com/rss?url={feedurl}" title="yahoo" target="_blank"><img src="http://img1.cache.netease.com/cnews/css09/rss100121/icon_subshot02_yahoo.gif" width="50" height="14" alt="yahoo" /></a></dd><dd><a href="http://www.xianguo.com/subscribe.php?url={feedurl}" title="鲜果" target="_blank"><img src="http://img1.cache.netease.com/cnews/css09/rss100121/icon_subshot02_xianguo.gif" width="50" height="14" alt="鲜果" /></a></dd><dd><a href="http://www.zhuaxia.com/add_channel.php?url={feedurl}" title="抓虾" target="_blank"><img src="http://img1.cache.netease.com/cnews/css09/rss100121/icon_subshot02_zhuaxia.gif" width="50" height="14" alt="抓虾" /></a></dd><dd><a href="http://mail.qq.com/cgi-bin/feed?u={feedurl}" title="qq" target="_blank"><img src="http://img1.cache.netease.com/cnews/css09/rss100121/icon_subshot02_qq.gif" width="50" height="14" alt="qq" /></a></dd><dd><a href="http://my.msn.com/addtomymsn.armx?id=rss&ut={feedurl}" title="msn" target="_blank"><img src="http://img1.cache.netease.com/cnews/css09/rss100121/msn.jpg" width="44" height="14" alt="msn" /></a></dd></dl>';
function RssTab(id){
    var RssObj=$('span.xml .rss[id='+id+']');
    var RssObjdl=$('span.xml .rss dl');
    for(var i=0,len=RssObj.length;i<len;i++){
        var rp_ppwin=ppwin.replace(/{feedurl}/g,RssObj.siblings().attr('href'));
        RssObjdl.replaceWith(rp_ppwin);
        RssObj.hover(
          function () {
            $(this).addClass("cur");
          },
          function () {
            $(this).removeClass("cur");
          }
        );
    }

}

</script>
{template "content","block-footer"}
</body>
</html>
